﻿using FluentMigrator;

namespace NoteDbGenerator
{
    [Migration(2, "项目窗体设计")]
    public class _002_ProjectForm : Migration
    {
        public override void Down()
        {
            Delete.FromTable("ProjectForm");
        }

        public override void Up()
        {
            Create.Table("ProjectForm")
                .WithColumn("ObjectID").AsString().PrimaryKey()
                .WithColumn("CreateAt").AsDateTime()
                .WithColumn("UpdateAt").AsDateTime()
                .WithColumn("CreateUser").AsCustom("NVARCHAR(20)")
                .WithColumn("UpdateUser").AsCustom("NVARCHAR(20)")
                .WithColumn("Description").AsCustom("NVARCHAR(512)")
                .WithColumn("FullName").AsCustom("NVARCHAR(256)");
        }
    }
}
